package org.pixelami.twisted.spread.jelly
{
	public class Unjellyable extends JellyableBase
	{
		/*
		"""
	    Inherit from me to Unjelly yourself directly with the
	    C{setStateFor} convenience method.
	    """
		*/
		
		public function Unjellyable()
		{
		}
		
		public function setStateFor(unjellier:Object, state:Object):void
		{
	        this.__dict__ = state;
	 	}
	
	
	    public function  unjellyFor(unjellier:Object, jellyList:Array):*
	    {
	        /*
	        Perform the inverse operation of L{Jellyable.jellyFor}.
	
	        @see: L{twisted.spread.interfaces.IUnjellyable.unjellyFor}
	        */
	        var state:Object = unjellier.unjelly(jellyList[1]);
	        this.setStateFor(unjellier, state);
	        return this;
	    }

	}
}

/*
class Unjellyable:
    """
    Inherit from me to Unjelly yourself directly with the
    C{setStateFor} convenience method.
    """
    implements(IUnjellyable)

    def setStateFor(self, unjellier, state):
        self.__dict__ = state


    def unjellyFor(self, unjellier, jellyList):
        """
        Perform the inverse operation of L{Jellyable.jellyFor}.

        @see: L{twisted.spread.interfaces.IUnjellyable.unjellyFor}
        """
        state = unjellier.unjelly(jellyList[1])
        self.setStateFor(unjellier, state)
        return self
*/